import Button from "@mui/material/Button";

export function Child(props: {
  state: string;
  setState: (state: string) => void;
}) {
  const { state, setState } = props;

  return (
    <>
      <div>{state}</div>
      <Button
        variant="contained"
        onClick={() => setState(new Date().getTime().toString())}
      >
        Get new Time
      </Button>
    </>
  );
}
